#ifndef MYBUTTON_H_
#define MYBUTTON_H_

class MyButton : public QPushButton
{
public:
		QString cur_text;
public:
	MyButton(QWidget * parent = 0) : QPushButton(parent)
	{		
	}
public:
	bool event(QEvent *event)
	{
		if ( event->type() == QEvent::FocusOut)
		{
			setText("Save");
			return true;
		}
		return QPushButton::event(event);
	}
};

#endif /*MYBUTTON_H_*/
